Skip to content

ci(pm-stack): wire decision-events-worker bun suite into pm-stack-tests (#9860) - #11735

Merged
dezren39 merged 1 commit into
mainfrom
queue/20487-9860-decision-events-ci
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20487-9860-decision-events-ci

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Closes #9860.

Change

  • pm-stack-tests.yml: new guarded step "Test decision-events-worker suite" that asserts pm-stack/decision-events-worker/test holds *.test.ts files and runs bun test.
  • test-suite-registry.json: row decision-events-worker mapped to that step.

Evidence

  • cd pm-stack/decision-events-worker && bun test on this branch: 15 pass, 0 fail, 62 expect() calls, 2 files (the issue counted 14 tests at triage time).
  • The workflow is nightly with no path filters, so the new step runs without a trigger-path change.

Scope

Only CI wiring and the registry row. No change to the worker source or tests.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Tests
    • Automated test runs now include the decision-events worker. The workflow verifies that its test suite is present and contains discoverable tests before running it, and includes the suite in test status reporting. These changes improve visibility into whether this component’s automated checks are available and passing.

@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 08:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T08:05:46.716814Z 34a11db PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CI workflow adds a guarded Bun test step for decision-events-worker. The test-suite registry records the suite’s test files and workflow venue.

Changes: decision-events-worker test CI

Layer / File(s) Summary
Register and run the test suite
.github/test-suite-registry.json, .github/workflows/pm-stack-tests.yml
The registry records the worker’s test files and CI venue. The workflow checks that the test directory contains at least one *.test.ts file, then runs bun test.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: claude

Merge Risk: Minimal · up to 34a11

This change runs the decision-events-worker test suite in CI and records it in the registry. It does not touch production code. No merge-blocking risk is apparent.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive [#9860] Verified at head: .github/workflows/pm-stack-tests.yml contains a new step "Test decision-events-worker suite". It asserts pm-stack/decision-events-worker/test holds *.test.ts files, fai… Confirm that the nightly-only trigger is the accepted policy for #9860 (or that the "every change" criterion is waived), so the trigger-path criterion can be assessed. Provide a read of the decision-events-worker row in `.github/test-suit…
Passed Passed checks: 3 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change accurately: it wires the decision-events-worker Bun test suite into the pm-stack-tests workflow, which matches the raw summary (new guarded Bun test step in pm-stack-tests.y…
Out of Scope Changes check Passed The changes are limited to one new step in .github/workflows/pm-stack-tests.yml and one registry row in .github/test-suite-registry.json (per the PR description and the summary). The step runs the…
Full details: Title check

Explanation

The title names the change accurately: it wires the decision-events-worker Bun test suite into the pm-stack-tests workflow, which matches the raw summary (new guarded Bun test step in pm-stack-tests.yml and a registry row). It is specific, single-sentence, and carries the scope (ci, pm-stack) and the issue reference (#9860). It does not mention the registry update or the guard for missing test files, but the title does not need to cover every detail.

Full details: Out of Scope Changes check

Explanation

The changes are limited to one new step in .github/workflows/pm-stack-tests.yml and one registry row in .github/test-suite-registry.json (per the PR description and the summary). The step runs the decision-events-worker Bun suite that #9860 requests. The row records the venue for the same suite, which #9860 also requests. No worker source or test files are changed, per the PR scope. No unrelated changes were identified in the evidence read. The registry diff could not be fully read, so its contents are inferred from the PR summary.

Full details: Linked Issues check

Explanation

[#9860] Verified at head: .github/workflows/pm-stack-tests.yml contains a new step "Test decision-events-worker suite". It asserts pm-stack/decision-events-worker/test holds *.test.ts files, fails the job if not, and runs bun test there. This meets the requirement that the job fails when no test files exist or a test fails. The workflow on: block at head lists only workflow_dispatch and a nightly schedule. It has no push or pull_request path filters. The issue's trigger-path criterion (add pm-stack/decision-events-worker/** to trigger paths, and run on every change) therefore does not map to this file as written. The PR states that the nightly policy replaces path-filtered triggers, and the workflow comments cite the nightly CI policy. That policy is not read here. The registry criterion is not verified. The PR description and raw summary say .github/test-suite-registry.json gains a decision-events-worker row mapped to the new step. The head read of that file was truncated at 16000 bytes before the row, and the diff read failed. The row is therefore unconfirmed. Omitted content is unknown, not absent.

Resolution

Confirm that the nightly-only trigger is the accepted policy for #9860 (or that the "every change" criterion is waived), so the trigger-path criterion can be assessed. Provide a read of the decision-events-worker row in .github/test-suite-registry.json at the reviewed head (for example, a narrowed read of that row or the full diff of that file) to confirm it names the new workflow step.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c78a2760-e110-4baf-875c-1601e2e82a9d
Commits

Reviewing files that changed from the base of the PR and between 28db185 and 34a11db.

Files selected for processing: 2

  • .github/test-suite-registry.json
  • .github/workflows/pm-stack-tests.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@dezren39
dezren39 merged commit d13e82f into main Nov 18, 2026
1 check passed
@dezren39
dezren39 deleted the queue/20487-9860-decision-events-ci branch November 18, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant